﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <style>
        th{
            text-align:center
        }
        td{
            width:200px;
            text-align:center;
        }
        </style>
    <asp:Button ID="Button1" runat="server" Text="添加" OnClick="Button1_Click" />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" AllowPaging="true" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowEditing="GridView1_RowEditing" OnRowDeleting="GridView1_RowDeleting" OnRowCommand="GridView1_RowCommand">
        <columns>
            <asp:BoundField DataField="Id" HeaderText="id"/>
            <asp:BoundField DataField="TaskName" HeaderText="任务名称"/>
            <asp:BoundField DataField="TaskContent" HeaderText="任务内容"/>
            <asp:BoundField DataField="TaskStatus" HeaderText="状态"/>
            <asp:BoundField DataField="Remarks" HeaderText="备注"/>
            <asp:ButtonField HeaderText="详情" ButtonType="Link"  Text="详情" CommandName="detail"/>
            <asp:CommandField HeaderText="操作" ShowEditButton="true" ShowDeleteButton="true"/>
            </columns>
    </asp:GridView>
    
        
</asp:Content>
